﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uc_LapPhieu.ascx.cs"
    Inherits="CSManager_UserControl_uc_LapPhieu" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css" media="print">
    .jwts_tabbernav
    {
        display: none;
    }
</style>
<script type="text/javascript">    var jwts_slideSpeed = 30; var jwts_timer = 10;</script>
<script type="text/javascript">
    $(function () {
        var objNgay = document.getElementById("<%=txtNgay.ClientID %>");
        $(objNgay).datepicker({
            showOn: "button",
            buttonImage: "../images/calendar.gif",
            buttonImageOnly: true
        });
    });
</script>
<div style="height: 850px">
    <div class="TitlePage">
        LẬP PHIẾU SOẠN HÀNG</div>
    <asp:Panel runat="server" ID="Panel1">
        <div style="text-align: left; width: 100%">
            <fieldset>
                <table width="100%">
                    <tr>
                        <td class="tdsearch1">
                        </td>
                        <td align="left" class="tdsearch2">
                            Ngày <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch3">
                            <asp:TextBox runat="server" ID="txtNgay" MaxLength="50" CssClass="txtBoxDate" Width="90%"></asp:TextBox>
                        </td>
                        <td class="tdsearch4">
                        </td>
                        <td align="left" class="tdsearch5">
                            Buổi <span style="color: Red">(*)</span>:
                        </td>
                        <td align="left" class="tdsearch6" style="margin-right: 5px">
                            <asp:DropDownList ID="ddlBUOI" CssClass="txtBox" runat="server" Width="100%">
                            </asp:DropDownList>
                        </td>
                        <td class="tdsearch7">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="7">
                            <asp:Label ID="lblAlerting" runat="server" CssClass="Alerting"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="7">
                            <asp:Button CssClass="btn_admin" ID="btnSearch" runat="server" Text="Tìm kiếm" OnClick="btnSearch_Click" />
                            &nbsp;&nbsp;
                            <asp:Button ID="btnSave" runat="server" CssClass="btn_admin" Text="Lưu" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                </table>
            </fieldset>
        </div>
    </asp:Panel>
    <div style="clear: both; height: 10px">
    </div>
    <div>
        <div id="divSearchList1">
            <asp:GridView ID="grdList" runat="server" AllowPaging="True" DataKeyNames="ID" AutoGenerateColumns="false"
                CssClass="grid" Width="100%" PageSize="10000">
                <Columns>
                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" ControlStyle-Width="90px">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSave" runat="server" Checked="true" />
                            <asp:HiddenField ID="hdfID" runat="server" Value='<%# Eval("ID") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="CS" ControlStyle-Width="200px">
                        <ItemTemplate>
                            <asp:Label ID="lblListingCS" runat="server" Text='<%# Eval("CSNAME") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Ngày làm phiếu" ControlStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="lblListingNgayLamPhieu" runat="server" Text='<%# Eval("NGAYLAMPHIEU") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Buổi" ControlStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="lblListingTENBUOI" runat="server" Text='<%# Eval("TENBUOI") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Tổng số lượng" ItemStyle-HorizontalAlign="Center"
                        ControlStyle-Width="100px">
                        <ItemTemplate>
                            <asp:Label ID="lblListingTSL" runat="server" Text='<%# string.Format("{0:N0}", Eval("TSL")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="TSL yêu cầu" ControlStyle-Width="100px" ItemStyle-HorizontalAlign="Center">
                        <ItemTemplate>
                            <asp:Label ID="lblListingLenhSoanHang" runat="server" Text='<%# string.Format("{0:N0}", Eval("LENHGIAOHANG")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle CssClass="pager" HorizontalAlign="Right" />
            </asp:GridView>
        </div>
    </div>
</div>
<asp:HiddenField ID="hdfDateTime" runat="server" />
